package com.touch.jgloo.owt;
import java.awt.*;
import com.sun.opengl.util.texture.Texture;
/**
 * A JGLStyleSheet is a list of 4 textures and colors that a JGLComponent can use.
 * @author Homicidal Monkey
 * @version 10.1.9
 * @since r419
 * @see com/touch/Licence
 */
public class JGLStyleSheet 
{
	/**
	 * Default dim color
	 * @since r461
	 */
	public static final Color DIM = new Color(150, 150, 150, 100);
	/**
	 * Default Panel style
	 * @since r461
	 */
	public static JGLStyleSheet DEFAULT_PANEL = 
		new JGLStyleSheet(null, null, null, null,
			Color.LIGHT_GRAY, DIM, Color.LIGHT_GRAY, Color.BLACK);
	/**
	 * Default Input (text box) style
	 * @since r461
	 */
	public static JGLStyleSheet DEFAULT_INPUT = 
		new JGLStyleSheet(null, null, null, null, 
			Color.WHITE, DIM, DIM, Color.BLACK);
	/**
	 * Default Button style
	 * @since r461
	 */
	public static JGLStyleSheet DEFAULT_BUTTON =
		new JGLStyleSheet(null, null, null, null,
				Color.LIGHT_GRAY, DIM, Color.LIGHT_GRAY, Color.BLACK);
	public Texture foregroundTexture;
	public Texture backgroundTexture;
	public Texture componentBackgroundTexture;
	public Texture componentForegroundTexture;
	public Color foregroundColor = Color.LIGHT_GRAY;
	public Color backgroundColor = DIM;
	public Color componentBackgroundColor = Color.BLACK;
	public Color componentForegroundColor = DIM;
	
	/** 
	 * Constructs a new JGLStyleSheet using the default
	 * @since r461
	 */
	public JGLStyleSheet(){}
	/**
	 * Constructs a new JGLStyleSheet using defined textures
	 * @param fT foreground texture
	 * @param bT background texture
	 * @param cFT component foreground texture
	 * @param cBT component background texture
	 * @param fC foreground color
 	 * @param bC background color
	 * @param cFC component foreground color
	 * @param cBC component background color
	 * @since r461
	 */
	public JGLStyleSheet(Texture fT, Texture bT, Texture cFT, Texture cBT, 
		Color fC, Color bC, Color cFC, Color cBC)
	{
		this.foregroundColor = fC;
		this.foregroundTexture = fT;
		this.backgroundColor = bC;
		this.backgroundTexture = bT;
		this.componentBackgroundColor = cBC;
		this.componentBackgroundTexture = cBT;
		this.componentForegroundColor = cFC;
		this.componentForegroundTexture = cFT;
	}
}
